$light-blue: #ffffff;
$light-hover-blue: #f5f5f5;
$blue: #f6f6f6;
$dark-green: #183e4b;

.color-dark-green{
  color: #002938;
}

.unableSelected{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.light {
  .panel-container {
    color: #333333;
    background-color: #ffffff;
    border-color: #ccc;
    .model-shown-bar {
      color: #00b2a2;
      background-color: #f6f6f6;
      //color: #333333;
      //background-color: #cccccc;
    }
    &.menu-container {
      //background-color: #f5f5f5;
    }
  }
  .resize-bar {
    &.row-resize, &.col-resize {
      background-color: #f6f6f6;
    }
  }
  .top-container {
    background-color: $light-blue;
  }
  .top-bars {
    li:not(:last-child) {
      margin-right: 10px;
    }
    .top-tool {
      background-color: $light-hover-blue;
      border: 5px solid $light-hover-blue;
      transition-duration: 100ms;
      &:hover {
        border-bottom-color: #00b2a2;
      }
    }
  }
  .side-bar-container {
    border: none;
    background-color: $blue;
    .side-bar {
      color: $dark-green;
      border-bottom: 1px dashed $dark-green;
      .side-bar-label.active {
        color: $blue;
        background-color: $dark-green;
      }
    }
  }
  .editor-container {
    //background-color: #f5f5f5;
  }

  .editor-container ::ng-deep .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
    .ant-tabs-close-x {
      display: none;
    }
    &:hover {
      .ant-tabs-close-x {
        display: inline-block;
        width: 16px;
        height: 16px;
        font-size: 20px;
        line-height: 13px;
        text-align: center;
        border-radius: 16px;
        margin-left: 5px;
        vertical-align: sub;
        &:hover {
          color: rgba(0, 0, 0, .6);
          background-color: rgba(0, 0, 0, .2);
        }
      }
      .ant-tabs-state {
        display: none;
      }
    }
    .ant-tabs-state {
      display: inline-block;
      width: 16px;
      height: 16px;
      margin-left: 5px;
      margin-right: -5px;
      line-height: 13px;
      text-align: center;
    }
  }
}

.dark {
  .panel-container {
    color: #ccc;
    background-color: #1e1e1e;
    border-color: #444444;
    .panel {
      background-color: #333;
    }
  }
  .resize-bar {
    &.row-resize, &.col-resize {
      background-color: #444444;
    }
  }
  .top-bars {
    background-color: #333333;
    border: 5px solid #eeeeee;
    .top-tool:hover {
      border-bottom-color: #555555;
      box-shadow: 0 0 1px 1px #444444;
    }
  }
  .side-bar {
    color: #ccc;
    .side-bar-label.active {
      background-color: rgba(0, 0, 0, .5);
    }
  }
  .editor-container ::ng-deep {
    .ant-tabs {
      color: rgba(163, 163, 163, 0.85);
    }
    .ant-tabs-bar {
      .ant-tabs-extra-content .ant-tabs-new-tab {
        color: #999999;
      }
      .ant-tabs-tab {
        background: #333333;
        border-color: #444;
        .ant-tabs-close-x {
          color: rgba(255, 255, 255, 0.5);
        }
      }
      .ant-tabs-tab-active {
        background: #222222;
        border-color: #333333;
      }
      .ant-tabs-nav-container {
        background-color: #333333;
      }
    }
  }
}

.ide-container {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  position: absolute;
}

.panel, .pane {
  height: 100%;
  width: 100%;
}

.panel-axis {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  position: absolute;
}

.panel-container, .pane-container {
  //min-height: 25px;
  //min-width: 25px;
  flex-basis: 0;
  position: relative;
  flex-grow: 1;
  overflow: hidden;
  ::-webkit-scrollbar, ::-webkit-scrollbar-button,
  ::ng-deep ::-webkit-scrollbar, ::ng-deep ::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
  }
  ::-webkit-scrollbar-corner, ::ng-deep ::-webkit-scrollbar-corner {
    background-color: transparent;
  }
}

.resize-bar.col-resize {
  cursor: col-resize;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 4px;
  z-index: 100;
}

.resize-bar.row-resize {
  cursor: row-resize;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  z-index: 100;
}

.panel-container.column,
.pane-container.column {
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

.panel-container.row,
.pane-container.row {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  margin: 0;
}

.row:before, .row:after {
  content: " ";
  display: table;
}

.side-bar-container {
  overflow-y: scroll;
  height: 100%;
}

.side-bar.left, .side-bar.right {
  width: 25px;
  flex-direction: column;
}

.top-container {
  height: 80px;
  //line-height: 80px;
  //border-bottom: 1px solid #00b2a2;
}

.top-logo {
  height: 100%;
  //background-color: #183e4b;
  padding: 20px 40px;
  float: left;
}

.top-bars {
  float: left;
  height: 100%;
  margin-left: 15%;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  li {
    float: left;
    .top-tool {
      font-size: 32px;
      height: 80px;
      line-height: 80px;
      padding: 0 30px;
      cursor: pointer;
    }
  }
}

.logout {
  display: inline-block;
  float: right;
  line-height: inherit;
}

.side-bar {
  display: flex;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
  color: #ccc;
  .side-bar-label {
    cursor: pointer;
    &.active {
      background-color: rgba(0, 0, 0, .5);
    }
  }
  .side-bar-label-content {
    display: flex;
    line-height: 1;
    align-items: center;
  }
  &.left, &.right {
    .side-bar-label {
      padding: 10px 0;
      text-align: right;
    }
    .side-bar-label-container {
      display: inline-block;
      white-space: nowrap;
      transform: translate(0.8em, -0.5em) rotate(90deg);
      transform-origin: 0 0.5em;
      &:before {
        content: "";
        float: right;
        margin-bottom: 100%;
      }
    }
  }
  &.left {
    .side-bar-label-content {
      transform: rotate(180deg);
    }
  }

  &.top, &.bottom {
    height: 25px;
    flex-direction: row;
    .side-bar-label {
      padding: 0 10px;
    }
    .side-bar-label-container {
      display: flex;
      align-items: center;
      height: 100%;
    }
  }
}

.ide-container ::ng-deep {
  .ant-tabs {
    height: 100%;
  }
  .ant-tabs-bar {
    border-bottom: none;
    margin: 0;
    .ant-tabs-extra-content .ant-tabs-new-tab {
      margin-top: 2px;
    }
    .ant-tabs-tab {
      line-height: 40px;
      border-top: none;
      border-left: none;
      margin-right: 0;
      border-radius: 0;
      background-color: #f6f6f6;
    }
    .ant-tabs-tab-active {
      background-color: #ffffff;
    }
  }
  .ant-tabs:not(.ant-tabs-vertical) > .ant-tabs-content {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid #eeeeee;
    .ant-tabs-tabpane {
      height: 100%;
      .editor-wrapper {
        height: 100%;
        position: relative;
        .scale-btn {
          position: absolute;
          top: 15px;
          right: 15px;
          z-index: 1000;
          font-size: 28px;
          padding: 0 10px;
          i {
            padding: 5px;
            border-radius: 2px;
          }
          i:hover {
            background-color: rgba(0, 0, 0, .2);
          }
        }
      }
    }
  }
}

.model-shown-bar {
  //height: 40px;
  line-height: 40px;
  font-size: 18px;
  padding: 0 15px;
  overflow: hidden;
  .model-bar-btns {
    height: 100%;
    float: right;
    text-align: right;
    i {
      font-size: 24px;
      margin-left: 20px;
    }
  }
}

.panel-container.menu-container {
  overflow: auto;
}

.panel-container .cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}
